package com.crm.business.admin.service.impl;

import com.crm.business.admin.service.CallUserService;
import com.crm.business.admin.service.IAdminUserHisTableService;
import com.crm.common.ka.core.feign.admin.entity.CallUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CallUserServiceImpl implements CallUserService {

    @Autowired
    private IAdminUserHisTableService adminUserHisTableService;

    /**
     * 员工坐席授权
     * @date 2020/8/28 14:19
     * @param callUser
     * @return
     **/
    public Boolean authorize(CallUser callUser){
        return adminUserHisTableService.authorize(callUser.getUserIds(),callUser.getState());
    }


    /**
     * 判断用户是否为坐席
     * @date 2020/8/28 14:19
     * @return
     **/
    public Boolean checkAuth(){
        return adminUserHisTableService.checkAuth();
    }
}
